﻿<?xml version="1.0" encoding="utf-8" ?>
<Recipe Name="GenerateItemsKnownSource" Bound="false" xmlns="http://schemas.microsoft.com/pag/gax-core">
  <xi:include href="..\Types\TypeAlias.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
  <Caption>Add Database items</Caption>
  <Arguments>
    <Argument Name="SourceConfiguration" Type="Sixeyed.CodeGeneration.Metadata.SourceConfiguration, Sixeyed.CodeGeneration">
      <ValueProvider Type="SourceConfigurationValueProvider"
                     SourceTypeName="Database"
                     SourceName="SqlServer Database"
                     SourceUri="Data Source=x\y;Integrated Security=True;Initial Catalog=Scratchpad;"
                     ProviderName="Table Provider">
      </ValueProvider>
    </Argument>
    <Argument Name="SelectedItems" Type="System.Collections.ArrayList"/>
    <Argument Name="TemplateConfiguration" Type="Sixeyed.CodeGeneration.Generation.TemplateConfiguration, Sixeyed.CodeGeneration"/>
    <Argument Name="CurrentProject" Type="EnvDTE.Project, EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
      <ValueProvider Type="Microsoft.Practices.RecipeFramework.Library.ValueProviders.FirstSelectedProject, Microsoft.Practices.RecipeFramework.Library" />
    </Argument>
  </Arguments>
  <GatheringServiceData>
    <Wizard xmlns="http://schemas.microsoft.com/pag/gax-wizards" SchemaVersion="1.0">
      <Pages>
        <Page Type="Sixeyed.Guidance.CodeGeneration.CustomWizardPages.SelectItems, Sixeyed.Guidance.CodeGeneration"  />
        <Page Type="Sixeyed.Guidance.CodeGeneration.CustomWizardPages.SelectTemplate, Sixeyed.Guidance.CodeGeneration"  />
       </Pages>
    </Wizard>
  </GatheringServiceData>
  <Actions>
    <Action Type="Sixeyed.Guidance.CodeGeneration.Actions.AddGeneratedItems, Sixeyed.Guidance.CodeGeneration"
            Name="AddGeneratedItems">
      <Input Name="TemplateConfiguration" RecipeArgument="TemplateConfiguration" />
      <Input Name="MetadataItems" RecipeArgument="SelectedItems"/>
      <Input Name="Project" RecipeArgument="CurrentProject" />
    </Action>
  </Actions>
</Recipe>